package cn.bigcontainer.alt.sys.po;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cn.bigcontainer.alt.common.po.BasePo;
import cn.bigcontainer.alt.common.po.Po;
import cn.bigcontainer.alt.common.util.WoKit;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@TableName(value = "sys_role", autoResultMap = true)
@Accessors(chain = true)
public class Role extends BasePo {

	@TableId(type = IdType.AUTO)
	protected Integer id;

	/**
	 * 名称
	 */
	protected String name;

	/**
	 * 类型：1-菜单，2-通知，3-按钮
	 */
	protected String description;
	
	protected Date createTime;

	protected Date updateTime;
	
	public Role () {
		super();
	}
	
	public Role(Po po) {
		WoKit.cloneBySetter(po, this);
	}
}
